{load header}

<!--/H-->
    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
            
            <!-- nav --><!-- nav -->
            
	<div class="main-title">
        <h2>信用卡列表</h2>
    </div>
		<div class="cf">
		<a class="btn" href="{eval echo site_url('credit/credit_add')}">添加信用卡</a>
		
		<!-- 高级搜索 -->
		<div class="search-form fr cf">
			<div class="sleft">
				<input type="text" name="key" class="search-input" value="{if $keyname }{$keyname}{/if}" placeholder="请输关键词">
				<a class="sch-btn" href="javascript:;" id="search" url=""><i class="btn-search"></i></a>
			</div>
			<div class="btn-group-click adv-sch-pannel fl">
            </div>
		</div>
	    </div>
	<div class="data-table table-striped">
		<table>
			<thead>
				<tr>
                                        <th>信用卡名称</th>
					<th>LOGO</th>
					<th>银行类型</th>
                                        <th>用途类型</th>
					<th>等级类型</th>
					<th>币种类型</th>
                                        <th>组织类型</th>
					<th>是否显示</th>
					<th>添加时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<!--{loop $list $val}-->
				<tr>    
					<td>{$val['title']}</td>
					<td><!--{if ($val['logo']!='')}--><img height="30" src="{$val['logo']}"><!--{/if}--></td>
                                        <td>{$val['bank_title']}</td>
					<td>{$val['use_title']}</td>
					<td>{$val['degree_title']}</td>
                                        <td>{$val['coin_title']}</td>
                                        <td>{$val['organ_title']}</td>
					<td>{if $val['is_hide']}
                                            <a href="{eval echo site_url('credit/sethide')}?id={$val['id']}&is_hide=0"  title='取消显示' class="ajax-get">显示</a>
                                            {else}
                                            <a href="{eval echo site_url('credit/sethide')}?id={$val['id']}&is_hide=1" style="color:red;" title='取消隐藏' class="ajax-get">隐藏</a>
                                            {/if}</td>
					<td>{$val['create_time']}</td>
                                        <td><a href="{eval echo site_url('credit/credit_edit')}?id={$val['id']}">修改</a></td>
                                        
				</tr>
				<!--{/loop}-->
			</tbody>
		</table>
		<!-- 分页 -->
	    <div class="page">
	        <div>
			{$showpage}
			<span class="rows">共 {$Total} 条记录</span>
                        <!--
                        <span class="rows" >金额总计 <font color="#F90">{$T_total['total']}</font> 元</span>
			<a target ="_blank;" href="{eval echo site_url('borrow/index_to_excel')}?{eval echo $_SERVER['QUERY_STRING'];}" >导出结果</a>
                        -->
                        
            </div>
		</div>
	</div>
	
			</div>
	</div>
<link href="{eval echo base_url()}static/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<link href="{eval echo base_url()}static/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{eval echo base_url()}static/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="{eval echo base_url()}static/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript" src="{eval echo base_url()}static/thinkbox/jquery.thinkbox.js"></script>
<script type="text/javascript">
	
$(function(){
	//搜索功能
	$("#search").click(function(){
		var url = $(this).attr('url');
		var status = $("#sch-sort-txt").attr("data");
        var query  = $('.search-form').find('input').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
        query = query.replace(/^&/g,'');
        if( url.indexOf('?')>0 ){
            url += '&' + query;
        }else{
            url += '?' + query;
        }
		window.location.href = url;
	});


    //回车自动提交
    $('.search-form').find('input').keyup(function(event){
        if(event.keyCode===13){
            $("#search").click();
        }
    });
})
</script>
<!--F-->{load footer}